<div class="pages_btns">
	<div id="nav">
		<?=html::anchor('forum', '论坛首页')?> » <?=html::anchor('forum/category/4', $category->title_cn)?> » <?=html::anchor('forum/topic/'.$category->id.'/'.$topic->id, $topic->subject)?> » 发表回复
	</div>
</div>
<?=html::script('/js/fckeditor/fckeditor.js')?>
<form method="post" action="/forum/savereply/<?=$category->id?>/<?=$topic->id?>" onsubmit="return Validator.Validate(this,2)" enctype="multipart/form-data">
<div class="mainbox formbox">
	<h1>发表回复</h1>
	<table cellspacing="0" cellpadding="0" id="newpost" summary="post">
	<thead><tr><th width="80">用户名</th><td><?=cookie::get('username')?></td></tr></thead>
	<tbody><tr>
		<th><label for="subject">标题</label></th>
		<td><input type="text" tabindex="3" value="" size="100" id="subject" name="subject"/> [选项]</td>
	</tr><tr>
		<th valign="top"><label for="posteditor_textarea">内容</label><br/><br/>注：没有输入主题内容将不被保存！</th>
		<td valign="top">
	<script type="text/javascript">
<!--
var sBasePath = '/' ;
var oFCKeditor = new FCKeditor( "message" ) ;
oFCKeditor.BasePath	= "/js/fckeditor/";
oFCKeditor.UserFilesPath = "/upload/";
oFCKeditor.Height	= 400 ;
oFCKeditor.Value	= '';
oFCKeditor.ToolbarSet = 'Forum' ;
oFCKeditor.Create() ;

//$('message').setAttribute('dataType', 'Require');
//$('message').setAttribute('msg', '请输入主题内容');
//-->
	</script>
	</td>
	</tr><tr class="btns">
		<th><label for="file">上传图片</label></th>
		<td><input type="file" id="photo" name="photo" value="" class="upload" size="120" label="Upload Photo" dataType="Filter" msg="非法的文件格式" type="file" accept="jpg, gif, png"/></td>
	</tr><tr class="btns">
		<th> </th>
		<td><button tabindex="300" value="true" id="postsubmit" name="topicsubmit" type="submit">发新话题</button></td>
	</tr>
	</tbody></table>
</div></form>